package com.lbg.drug.controller;


import com.lbg.drug.commont.untils.PageUtils;
import com.lbg.drug.commont.untils.R;
import com.lbg.drug.dto.StockPage;
import com.lbg.drug.entity.Store;
import com.lbg.drug.service.StockService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * <p>
 * 库存信息表
 * </p>

 * @author lbg
 * @since 2022-04-26
 */
@Api(value="库存信息表",tags={"库存信息表"})
@RestController
@RequestMapping("/stock")
public class StockController {


    @Autowired
    private StockService service;



    @PostMapping("/getALL")
    public R getALL(@RequestBody StockPage stockPage){
        PageUtils stock = service.getStock(stockPage);
        return R.ok().put("stock", stock);
    }
}

